<?php
class UsuariosController extends AppController {

	var $name = 'Usuarios';
	
	function login() {
		//pr($this->data);
		//echo md5($this->data['Usuario']['email']);
		$this->Session->write('usuario', $this->data['Usuario']['email']);
		$this->redirect($this->referer());
	}
	
	function logout() {
		$this->Session->delete('usuario');
		$this->redirect($this->referer());
	}

}
?>